import { defineStore } from 'pinia';

export const useBookStore = defineStore('book', {
    state: () => ({
      book: {
        // editions:'2022人教版',
        // textClass:'一年级',
        // term:'上册',
        // subject:'语文',
        // unit:'第一单元',
        // content:'第一课《天地人》',
      },
    }),
    actions: {
      setBook(book) {
        this.book = book;
      },
    },
  });